package org.kymjs.emoji.demo;

import org.kymjs.emoji.EmojiClickListener;
import org.kymjs.emoji.KJEmojiFragment;
import org.kymjs.emoji.model.EmojiIcon;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.widget.Toast;

public class MainActivity extends FragmentActivity implements
        EmojiClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        getSupportFragmentManager().beginTransaction()
                .replace(R.id.root, new KJEmojiFragment()).commit();
    }

    @Override
    public void onEmojiClick(EmojiIcon emoji) {
        Toast.makeText(this, "点击", 0).show();
    }

    @Override
    public void onDeleteClick() {
        Toast.makeText(this, "删除", 0).show();
    }
}
